<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>登录页面</title>
</head>
<style>
body {
	background-image: url('${pageContext.request.contextPath }/images/a.jpg');
	background-color: black;
	background-repeat: no-repeat;
	background-size: 100% 100%;
	background-attachment: fixed;
}
</style>
<style>
#top {
	font-family: KaiTi; /*字体设置为楷体*/
	font-size: 50px; /*设置字体大小*/
	text-align: center; /*字体居中*/
	height: 150px; /*设置按钮高度*/
	color: white;
}

#bbb {
	text-align: center; /*字体居中*/
	color: white;
}
</style>
<style>
button {
	width: 425px; /*设置按钮宽度*/
	color: white; /*字体颜色*/
	background-color: #004B97; /*按钮背景颜色*/
	border-radius: 3px; /*让按钮变得圆滑一点*/
	border-width: 0; /*消去按钮丑的边框*/
	margin: 0;
	outline: none; /*取消轮廓*/
	font-family: KaiTi; /*字体设置为楷体*/
	font-size: 20px; /*设置字体大小*/
	text-align: center; /*字体居中*/
	cursor: pointer; /*设置鼠标箭头手势*/
}

button:hover { /*鼠标移动时的颜色变化*/
	background-color: green;
	width: 425px; /*设置按钮宽度*/
	/*设置按钮高度*/
}
</style>
<body>
	<div id="top">小米企业管理系统</div>

	<form:form modelAttribute="user" method="post"
		action="${pageContext.request.contextPath }/user/login">
		<center>
			<fieldset
				style="width: 500px; display: block; margin: 0 auto; float: none;">
				<legend>
					<span style="color: white; font-size: 30px;">登录</span>
				</legend>

				<div id="bbb">
					<p>
						用户名:
						<form:input path="userName" />
						<span style="color: red"><form:errors path="userName" />${NameError }</span>
					</p>
					<p>
						密码：
						<form:password path="password" />
						<span style="color: red"><form:errors path="password" />${PasswordEorr }</span>
					</p>
					<p id="buttons">
						<input id="reset" type="reset" /> <input id="submit" type="submit"
							value="登录" />
					</p>

				</div>
				<form:hidden path="password1" value="123456789" />
			</fieldset>
		</center>
	</form:form>
</body>
</html>